<?php
    
  	$content = "";
		
    $content .= '<div id="light_menu" class="menu">';
    $content .= $menulist; // see the modules/sideboxes/YOURTEMPLATE/categories_css.php for this

  if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
    $content .= '<ul><li><a href=""> </a></li></ul>';  // insert a blank line/box in the menu
    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
      $content .= '<ul><li><a href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a></li></ul>';
    }
    if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
      $content .= '<ul><li><a href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a></li></ul>';
    }
    if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
      $show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= 1 limit 1");
      if ($show_this->RecordCount() > 0) {
        $content .= '<ul><li><a href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a></li></ul>';
      }
    }
    if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
      $content .= '<ul><li><a href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a></li></ul>';
    }
  }
  $content .= '</div>';
  

if($cPath){
	$content_new .='<div class="F_cate"><img align="absmiddle" src="images/'.zen_get_category_img($current_category_id).'" alt="'. zen_get_category_name($current_category_id,$_SESSION['languages_id']).'"/>
		<a href="'.zen_href_link(FILENAME_DEFAULT, 'cPath='.$current_category_id).'">' . zen_get_category_name($current_category_id,$_SESSION['languages_id']).'</a></div>';
	
	$content_new .= '<div id="left_category_s" class="bg_bb">';
	$content_new .= $menulist_new; 
	$content_new .= '</div>';
}else{
	
	$content_new .= '<div id="left_category" class="bg_bb">';
	$content_new .= $menulist_new; 
	$content_new .= '</div>';
}
/*if($this_is_home_page){
 $content_new .= '<div id="left_category" class="bg_bb">';
 $content_new .= $menulist_new; 
 $content_new .= '</div>';
}else{ 
	if($cPath){
	 $content_new .='<div class="F_cate"><img align="absmiddle" src="images/'.zen_get_category_img($current_category_id).'" alt="'. zen_get_category_name($current_category_id,$_SESSION['languages_id']).'"/>
            <a href="'.zen_href_link(FILENAME_DEFAULT, 'cPath='.$current_category_id).'">' . zen_get_category_name($current_category_id,$_SESSION['languages_id']).'</a></div>';
	
	}
 $content_new .= '<div id="left_category_s" class="bg_bb">';
 $content_new .= $menulist_new; 
 $content_new .= '</div>';
}*/
// May want to add ............onfocus="this.blur()"...... to each A HREF to get rid of the dotted-box around links when they're clicked.
// just parse the $content string and insert it into each A HREF tag

?>